﻿<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Quản lí bộ test</title>
</head>
<body>
<?php 
require_once("../include/db_info.inc.php"); 
require_once("admin-header.php");
require_once("../maincore.php");
if (!defined("THNOJ")) die("Outside of the site");
if(!isset($_GET['t'])) exit(-1);
?>
<center><h1>Sửa bài - quản lí bộ test</h1></center>

<?php
$tid=intval($_GET['t']);	 
echo "<h2>Xem bộ test $tid:</h2>";
$sql="select * from ctd_test where id=$tid and user_id='$myid'";
$result = mysql_query($sql);
if (mysql_num_rows($result)) {
	$row = mysql_fetch_array($result);
	echo "<table>";
	echo "<tr><td>Input</td><td><pre>".$row['input']."</pre></td></tr>";
	echo "<tr><td>Output</td><td><pre>".$row['output']."</pre></td></tr></table>";
} else {
	echo "Không có bộ test.";
}	

require_once("../oj-footer.php");
?>


</body>
</html>

